package iuiga.entity.message;

import com.alibaba.fastjson.JSONObject;
import iuiga.enable.ThirdpartyBeanName;
import lombok.Data;

import java.util.Map;

/**
 * 阿里云短信
 */
@Data
@ThirdpartyBeanName("ALI_SMS")
public class MessageAliSmsEntity implements MessageEntity {

    /**
     * 短信模板
     */
    private String templateCode;

    /**
     * 参数内容
     */
    private String content;

    /**
     * 签名
     */
    private String signName;

    /**
     * 手机号码
     */
    private String  phone;

    public MessageAliSmsEntity(String templateCode, Map<String,String> content, String signName, String phone) {
        this.templateCode = templateCode;
        this.content = JSONObject.toJSONString(content);
        this.signName = signName;
        this.phone = phone;
    }
}
